package com.medusa.aps.business.model.enums;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.EnumValue;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@Schema(description = "排产时间设置")
@RequiredArgsConstructor
public enum SettingsForSchedulingType {
    /**
     * 排程开始时间
     */
    @Schema(description = "排程开始时间")
    PARTIAL_OPERATION(0, "排程开始时间"),

    /**
     * 排程结束时间
     */
    @Schema(description = "排程结束时间")
    ALL_OPERATION(1, "排程结束时间"),
    ;

    @EnumValue
    private final Integer code;

    @JSONField(value = true)
    private final String value;
}
